using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialStatisticsTools._Utilities
{
    /// <summary>
    /// <para>Convert Spatial Weights Matrix to Table</para>
    /// <para>Converts a binary spatial weights matrix file (.swm) to a table.</para>
    /// <para>将二进制空间权重矩阵文件 （.swm） 转换为表。</para>
    /// </summary>    
    [DisplayName("Convert Spatial Weights Matrix to Table")]
    public class ConvertSpatialWeightsMatrixtoTable : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ConvertSpatialWeightsMatrixtoTable()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_Spatial_Weights_Matrix_File">
        /// <para>Input Spatial Weights Matrix File</para>
        /// <para>The full pathname for the spatial weights matrix file (.swm) you want to convert.</para>
        /// <para>要转换的空间权重矩阵文件 （.swm） 的完整路径名。</para>
        /// </param>
        /// <param name="_Output_Table">
        /// <para>Output Table</para>
        /// <para>A full pathname to the table you want to create.</para>
        /// <para>要创建的表的完整路径名。</para>
        /// </param>
        public ConvertSpatialWeightsMatrixtoTable(object _Input_Spatial_Weights_Matrix_File, object _Output_Table)
        {
            this._Input_Spatial_Weights_Matrix_File = _Input_Spatial_Weights_Matrix_File;
            this._Output_Table = _Output_Table;
        }
        public override string ToolboxName => "Spatial Statistics Tools";

        public override string ToolName => "Convert Spatial Weights Matrix to Table";

        public override string CallName => "stats.ConvertSpatialWeightsMatrixtoTable";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_Input_Spatial_Weights_Matrix_File, _Output_Table];

        /// <summary>
        /// <para>Input Spatial Weights Matrix File</para>
        /// <para>The full pathname for the spatial weights matrix file (.swm) you want to convert.</para>
        /// <para>要转换的空间权重矩阵文件 （.swm） 的完整路径名。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Spatial Weights Matrix File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Input_Spatial_Weights_Matrix_File { get; set; }


        /// <summary>
        /// <para>Output Table</para>
        /// <para>A full pathname to the table you want to create.</para>
        /// <para>要创建的表的完整路径名。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_Table { get; set; }


        public ConvertSpatialWeightsMatrixtoTable SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}